package com.neusoft.work.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.work.po.Dish;
import com.neusoft.work.po.ResponseBean;
import com.neusoft.work.service.DishService;


@RequestMapping("/DishController")
@RestController

public class DishController {
    @Autowired
    private DishService bas;

    @GetMapping("/queryDish")
    public ResponseBean<List<Dish>> queryDish(){
        return bas.queryDish();
    }
    
    @RequestMapping("/queryDishById")
    public ResponseBean<Dish> queryDishById(Integer id){
        return bas.queryDishById(id);
    }


}